import redis

r = redis.Redis(host='localhost', port =6379, decode_responses=True)

r.set('Bogut', '12')

r.lpush('lakers', 'James')
r.lpush('lakers', 'Davis')
r.lpush('lakers', 'Green')
r.lpush('lakers', 'Gasol')

r.sadd('nets', 'Durent','Owen','Harden','Harries')

print(r.lrange('lakers',0,2))
print(r.get('StephenCurry'))
print(r.smembers('nets'))
print(r.zrange('warriors', 0, 2))